// Copyright (c) 2021 Presto Labs Pte. Ltd.
// Author: leon

#pragma once

#include <iomanip>
#include <sstream>
#include <string>
#include <utility>
#include <vector>

#include "coin2/base/time.h"
#include "coin2/exchange/feed.pb.h"

struct MarkPrice {
  int64_t timestamp;
  double mark_price;

  void Clear() {
    timestamp = 0;
    mark_price = 0;
  }
};

inline std::ostream& operator<<(
    std::ostream& os,
    const MarkPrice& mark_price) {
  os << "Mark Price ";
  os << "(mark_price=";
  os << std::setw(15);
  os << mark_price.mark_price;
  os << ")";
  return os;
}
